package com.renren.project.db.utils.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel("排序对象")
public class Order {

    @NotEmpty
    @ApiModelProperty("排序字段")
    private String name;

    @ApiModelProperty("排序方法，默认升序")
    private Boolean asc;
}
